package com.jzo2o.customer.controller.operation;

import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.domain.AgencyCertificationAudit;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.request.CertificationAuditReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.service.AgencyCertificationAuditService;
import com.jzo2o.mvc.utils.UserContext;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController("operationAgencyCertificationAuditController")
@RequestMapping("/operation/agency-certification-audit")
@Api(tags = "机构人员认证信息")
public class AgencyCertificationAuditController {



    @Resource
    AgencyCertificationAuditService agencyCertificationAuditService;



    @GetMapping("/page")
    public PageResult<AgencyCertificationAudit> pageList(AgencyCertificationAuditPageQueryReqDTO agencyCertificationAuditPageQueryReqDTO){

        return agencyCertificationAuditService.pageList(agencyCertificationAuditPageQueryReqDTO);

    }

    @PutMapping("/audit/{id}")
    public void auditStatus(@PathVariable("id")Long id,@RequestBody CertificationAuditReqDTO certificationAuditReqDTO){

        agencyCertificationAuditService.auditStatus(id,certificationAuditReqDTO);
    }



}
